export function createMonthArr(): number[] {
    let monthArr: number[] = [];
    for (let i = 1; i <= 12; i++) {
        monthArr.push(i);
    }
    return monthArr;
}
export function createDayArr(date: number[]): number[] {

  const count = getDayCount(date);
  let dayArr: number[] = [];
  for (let i = 1; i <= count; i++) {
    dayArr.push(i);
  }
  return dayArr;
}

function getDayCount([year,month]:number[]): number {
  return new Date(year, month, 0).getDate();
}